package com.lagou.ModelTest.Second;

public abstract class PhoneTest implements IPlay{
    @Override
    public void playGame(){}
    public static void main(String[] args){
        //声明引用指向对象
        OldPhone op=new OldPhone("OldPhone");
        //调用方法
        op.call();
        //声明引用指向对象
        NewPhone np=new NewPhone("NewPhone");
        //调用方法
        np.call();
        np.playGame();
    }
}
